<!doctype html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>HTMX - example</title>
  <link rel="stylesheet" href="./main.css" />
</head>

<body>
  <script type="module" src="./main.mjs"></script>
  <div id="container" class="contact-form">
    <form hx-put="/contact/1" hx-target="this" hx-swap="outerHTML">
      <div>
        <label>First Name</label>
        <input type="text" name="firstName" value="Joe" />
      </div>
      <div class="form-group">
        <label>Last Name</label>
        <input type="text" name="lastName" value="Blow" />
      </div>
      <div class="form-group">
        <label>Email Address</label>
        <input type="email" name="email" value="joe@blow.com" />
      </div>
      <button class="btn" type="submit">Submit</button>
      <button class="btn" hx-get="/contact/1">Cancel</button>
    </form>
  </div>
</body>

</html>